package com.mew.common.rest.agent;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * 代理
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AgentResponse extends ZebraBaseMessage<AgentResponse> {
    private int agentLevel;//代理等级
    private int vipLevel;//vip等级
    private int dayBind;//今日绑定
    private int allBind;//总绑定
    private long allBonus;//总返利
    private long allExtract;//总提取

    @Override
    public void write(ByteBuf b) {
        writeInt(b,agentLevel);
        writeInt(b,vipLevel);
        writeInt(b,dayBind);
        writeInt(b,allBind);
        writeLong(b,allBonus);
        writeLong(b,allExtract);
    }

    @Override
    public AgentResponse read(ByteBuf byteBuf) {
        return null;
    }
}
